package isanfeng.tuxiaoer.pattern.structural.decorator.v2;

/**
 * @author 李红辉
 * @version 1.0
 * @date 2019/10/12 18:26
 */
public class SausageDecorator extends AbstractDecorator {
    @Override
    protected void doSomething() {
        System.out.println("加一根香肠");
    }

    public SausageDecorator(ABatterCake aBatterCake) {
        super(aBatterCake);
    }

    @Override
    public String getDesc() {
        return super.getDesc() + "1根香肠";
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 2;
    }
}
